package top.lt.lt_ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import top.lt.lt_ssm.bean.producttype;
import top.lt.lt_ssm.dao.ProtypeDao;
import top.lt.lt_ssm.service.ProtypeService;

@Service
public class ProtypeServiceImpl implements ProtypeService{

	@Resource
	private ProtypeDao protypeDao;

	@Override
	public List<producttype> GETALL() {
		return protypeDao.GETALL();
	}

	@Override
	public producttype getByparentId(int parentId) {
		return protypeDao.getByparentId(parentId);
	}

	@Override
	public int delbyid(int ptype_id) {
		return protypeDao.delbyid(ptype_id);
	}
	
}
